package com.lianrui.app.comments.domain;

import java.util.Date;
import java.util.List;

import com.lianrui.core.Domain;

public class Comments extends Domain<Integer> {

	private static final long serialVersionUID = 1L;
	public static final String LEAVEWORDS = "leavewords";
	public static final String ASK = "ask";
	public static final String DISCUSS = "discuss";

	private Integer comment_id; // ID
	/** 回复评论的ID **/
	private Integer for_comment_id;
	/**
	 * meens goods_id or article_id 2015-11-25 [modify] meens order item id
	 **/
	private Integer object_id;
	/** ask：咨询 leavewords：留言 discuss：评论 **/
	private String object_type;
	/** 作者编号 **/
	private Integer author_id;
	/** 作者名称 **/
	private String author;
	/** 级别名称 **/
	private String levelname;
	/** 订单编号 即 order.sn **/
	private String contact;
	/** 人员的读取状态 **/
	private String mem_read_status;
	/** 超级管理员的读取状态 **/
	private String adm_read_status;
	/** 评论时间 **/
	private Long time;
	/** 开始时间 */
	private Date timeStart;
	/** 结束时间 */
	private Date timeEnd;
	/** 次数 第几次评论 **/
	private Integer times;
	/** 商品名称 */
	private String name;
	/** 客户账号 **/
	private String uname;
	private Long lastreply;// 最后一次回复
	private String reply_name;// 回复人
	private String title;// 标题
	private String acomment;
	private String ip;
	/** 是否显示 ：true 显示 false 不显示 **/
	private String display;
	private Integer p_index;
	private String disabled;
	/** 如article、 shop，标识是文章评论或者是商品评论 **/
	private String commenttype;
	private int grade; // 评分
	private int grade1; // 评分
	private int grade2; // 评分
	private String img;
	/** 内容 **/
	private String comment;
	
	private List<Comments> appends;
	
	public Date getDate() {
		return new Date(this.getTime());
	}

	public String getCommenttype() {
		return commenttype;
	}

	public void setCommenttype(String commenttype) {
		this.commenttype = commenttype;
	}

	public Integer getComment_id() {
		return comment_id;
	}

	public void setComment_id(Integer commentId) {
		comment_id = commentId;
	}

	public Integer getFor_comment_id() {
		return for_comment_id;
	}

	public void setFor_comment_id(Integer forCommentId) {
		for_comment_id = forCommentId;
	}

	public Integer getObject_id() {
		return object_id;
	}

	public void setObject_id(Integer objectId) {
		object_id = objectId;
	}

	public String getObject_type() {
		return object_type;
	}

	public void setObject_type(String objectType) {
		object_type = objectType;
	}

	public Integer getAuthor_id() {
		return author_id;
	}

	public void setAuthor_id(Integer authorId) {
		author_id = authorId;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getLevelname() {
		return levelname;
	}

	public void setLevelname(String levelname) {
		this.levelname = levelname;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getMem_read_status() {
		return mem_read_status;
	}

	public void setMem_read_status(String memReadStatus) {
		mem_read_status = memReadStatus;
	}

	public String getAdm_read_status() {
		return adm_read_status;
	}

	public void setAdm_read_status(String admReadStatus) {
		adm_read_status = admReadStatus;
	}

	public Long getTime() {
		return time;
	}

	public void setTime(Long time) {
		this.time = time;
	}

	/**
	 * @return 第几次评论
	 */
	public Integer getTimes() {
		return times;
	}

	/**
	 * @param 第几次评论
	 */
	public void setTimes(Integer times) {
		this.times = times;
	}

	public Long getLastreply() {
		return lastreply;
	}

	public void setLastreply(Long lastreply) {
		this.lastreply = lastreply;
	}

	public String getReply_name() {
		return reply_name;
	}

	public void setReply_name(String replyName) {
		reply_name = replyName;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAcomment() {
		return acomment;
	}

	public void setAcomment(String acomment) {
		this.acomment = acomment;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getDisplay() {
		return display;
	}

	public void setDisplay(String display) {
		this.display = display;
	}

	public Integer getP_index() {
		return p_index;
	}

	public void setP_index(Integer pIndex) {
		p_index = pIndex;
	}

	public String getDisabled() {
		return disabled;
	}

	public void setDisabled(String disabled) {
		this.disabled = disabled;
	}

	public int getGrade() {
		return grade;
	}

	public void setGrade(int grade) {
		this.grade = grade;
	}

	public int getGrade1() {
		return grade1;
	}

	public void setGrade1(int grade1) {
		this.grade1 = grade1;
	}

	public int getGrade2() {
		return grade2;
	}

	public void setGrade2(int grade2) {
		this.grade2 = grade2;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	/**
	 * @return 评论开始时间
	 */
	public Date getTimeStart() {
		return timeStart;
	}

	/**
	 * @param 评论开始时间
	 *            to set
	 */
	public void setTimeStart(Date timeStart) {
		this.timeStart = timeStart;
	}

	/**
	 * @return 评论结束时间
	 */
	public Date getTimeEnd() {
		return timeEnd;
	}

	/**
	 * @param 评论结束时间
	 *            to set
	 */
	public void setTimeEnd(Date timeEnd) {
		this.timeEnd = timeEnd;
	}

	public String getImage() {
		return img;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	/**
	 * @return 商品名称
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param 商品名称
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return 客户账号
	 */
	public String getUname() {
		return uname;
	}

	/**
	 * @param 客户账号
	 */
	public void setUname(String uname) {
		this.uname = uname;
	}

	@Override
	public Integer getId() {
		return comment_id;
	}

	@Override
	public void setId(Integer id) {
		this.comment_id = id;
	}

	public List<Comments> getAppends() {
		return appends;
	}

	public void setAppends(List<Comments> appends) {
		this.appends = appends;
	}

}
